{include file="layout/header" title="文章列表" /}
	<div class="view-body">
    {include file="layout/menu" /}
		<div class="view-product">
			<div class="company_identify">
				<div class="manage-head fl">
					<h6 class="padding-left manage-head-con">文章列表</h6>
				</div>
				<div class="fr" style="margin:10px 10px 0 0;">
					<button class="fr layui-btn layui-btn-primary layui_iframe" h="670px" title="添加文章" url="{:url('admin/Article/editArticle')}" w="1000px">添加文章
	            	</button>
				</div>
				<form class="layui-form" action="{:url('admin/Article/index')}" method="post" name="ArticleForm">
					<div class="layui-form-item">
						<label class="layui-form-label">筛选</label>
					    <div class="layui-input-inline">
					      	<select name="status">
					        	<option value="2" >所有状态</option>
					        	<option value="1" >显示</option>
					        	<option value="0" >隐藏</option>
					      	</select>
					    </div>
					    <div class="layui-input-inline">
					      	<select name="category_id">
					        	<option value="0" >所有分类</option>
					        	{volist name="categorys" id="v"}
					        	<option value="{$v.id}" >{$v.name}</option>
					        	{/volist}
					      	</select>
					    </div>
						<div class="layui-input-inline">
					      	<input type="text" name="keyword" lay-verify="title" placeholder="请输入标题" class="layui-input">
					    </div>
							<div class="layui-input-inline">
					      	<button class="layui-btn layui-btn-primary">确定</button>
					    </div>
					</div>
				</form>

				<div class="offcial-table tr-border table-margin clearfix">
					<div class="tr-th clearfix">
						<div class="th w5">选择</div>
						<div class="th w5">ID</div>
						<div class="th w10">分类</div>
						<div class="th w35">文章标题</div>
						<div class="th w5">点击数</div>
						<div class="th w10">发布时间</div>
						<div class="th w10">更新时间</div>
						<div class="th w10">状态</div>
						<div class="th w10">操作</div>
					</div>
						{volist name="articles" id="v"}
						<div class="tr clearfix border-bottom-none">
							<div class="th w5">
								<input type="checkbox" name="ids" value="{$v.id}">
							</div>
							<div class="td w5">{$v.id}</div>
							<div class="td w10">{$v.name}</div>
							<div class="td w35">{$v.title}</div>
							<div class="td w5">{$v.click}</div>
							<div class="td w10">{$v.create_time|date = 'Y-m-d H:i',###}</div>
							<div class="td w10">{$v.update_time|date = 'Y-m-d H:i',###}</div>
							<div class="td w10">{$v.status ? '显示':'隐藏'}</div>
							<div class="td w10">
								<a href="javascript:;" w="1000px" h="670px" title="编辑" url="{:url('admin/Article/editArticle',['id'=>$v['id']])}" class="layui-btn layui-btn-mini layui-btn-warm layui_iframe">编辑</a>
								<a href="{:url('admin/Article/delArticle',['id'=>$v['id']])}" msg="确定删除？" class="layui-btn layui-btn-mini layui-btn-danger layui_confirm">删除</a>
							</div>
						</div>
						{/volist}
				</div>

				<div class="fl margin-top padding-big-left">
					<button class="layui-btn layui-btn-primary layui-btn-small select_all" style="margin-bottom: 8px;">全选</button>
					<button class="layui-btn layui-btn-primary layui-btn-small delete_all" url="{:url('admin/Article/delArticle')}" style="margin-bottom: 8px;">批量删除</button>
				</div>

				<div class="fr padding-big-right">
					<div class="page">
						{$articles->render()}
					</div>
				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript">
		var formObj = new Form('ArticleForm');
	        formObj.init({$post});
	</script>
{include file="layout/footer" /}
